import pdb
import bloomext
import time
#pdb.set_trace()

fd = file('url.dat')
bloomext.starts('./url.io', 0, 100000000)
print time.time()
#while 1:
#	line = fd.readline()
#	if not line:
#		break
#	line = line.strip()

#	if bloomext.isexist(line, len(line)):
#		print line
import sys
if bloomext.isexist(sys.argv[1], len(sys.argv[1])):
    print '%s exist' % sys.argv[1]
else:
    print '%s not exist' % sys.argv[1]

print time.time()
bloomext.finish()

